home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hardcore Visual Basic 5.0 (2nd Edition)
/
Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso
/
Source
/
Cpp4VB
/
WINTLB
/
COMCONST.ODL
next >
Wrap
Text File
|
1996-05-30
|
4KB
|
126 lines
[
uuid(54674060-3A82-101B-8181-00AA003743D3),
helpstring("Control Character Strings and Other Common Constants"),
dllname("NOSUCH.DLL")
]
module CommonConst {
[ helpstring("Empty string (\"\")") ]
const LPSTR sEmpty = "";
[ helpstring("Null character (ASCII 0)") ]
const LPSTR sNullChr = "\0";
[ helpstring("Null string pointer (address zero)") ]
const LPSTR sNullStr = 0;
[ helpstring("Carriage return/line feed (ASCII 13,10)") ]
const LPSTR sCrLf = "\r\n";
[ helpstring("Double carriage return/line feed (ASCII 13,10,13,10)") ]
const LPSTR sCrLfCrLf = "\r\n\r\n";
[ helpstring("Carriage return (ASCII 13)") ]
const LPSTR sCr = "\r";
[ helpstring("Line feed (ASCII 10)") ]
const LPSTR sLf = "\n";
[ helpstring("Bell (ASCII 7)") ]
const LPSTR sBell = "\a";
[ helpstring("Backspace (ASCII 8)") ]
const LPSTR sBack = "\b";
[ helpstring("Tab (ASCII 9)") ]
const LPSTR sTab = "\t";
[ helpstring("Vertical Tab (ASCII 11)") ]
const LPSTR sVerticalTab = "\v";
[ helpstring("Form feed (ASCII 12)") ]
const LPSTR sFormFeed = "\f";
// Uncommon consts
const LPSTR sSOH = "";
const LPSTR sSTX = "";
const LPSTR sETX = "";
const LPSTR sEOT = "";
const LPSTR sENQ = "";
const LPSTR sACK = "";
const LPSTR sSO = "";
const LPSTR sSI = "";
const LPSTR sDLE = "";
const LPSTR sDC1 = "";
const LPSTR sDC2 = "";
const LPSTR sDC3 = "";
const LPSTR sDC4 = "";
const LPSTR sNAK = "";
const LPSTR sSYN = "";
const LPSTR sETB = "";
const LPSTR sCAN = "";
const LPSTR sEM = "";
// const LPSTR sSUB = " "; // Can't define in ODL
const LPSTR sESC = "";
const LPSTR sFS = "";
const LPSTR sGS = "";
const LPSTR sRS = "";
const LPSTR sUS = "";
[ helpstring("Executable Extension") ]
const LPSTR sExeExt = ".EXE";
[ helpstring("Program Information File Extension") ]
const LPSTR sPifExt = ".PIF";
[ helpstring("Command File Extension") ]
const LPSTR sCmdExt = ".CMD";
[ helpstring("Batch File Extension") ]
const LPSTR sBatExt = ".BAT";
[ helpstring("Flat Executable File Extension") ]
const LPSTR sComExt = ".COM";
[ helpstring("Backslash (directory separator)") ]
const LPSTR sBSlash = "\\";
[ helpstring("Double backslash (network directory indicator)") ]
const LPSTR sBSlash2 = "\\\\";
[ helpstring("Colon (drive separator)") ]
const LPSTR sColon = ":";
[ helpstring("Dot (file extension separator)") ]
const LPSTR sDot = ".";
[ helpstring("Space") ]
const LPSTR sSpace = " ";
[ helpstring("Single quote") ]
const LPSTR sQuote1 = "'";
[ helpstring("Double quote") ]
const LPSTR sQuote2 = "\"";
[ helpstring("Pipe (horizontal bar)") ]
const LPSTR sPipe = "|";
[ helpstring("Less than") ]
const LPSTR sLesser = "<";
[ helpstring("Greater than") ]
const LPSTR sGreater = ">";
[ helpstring("Null pointer") ]
const long pNull = 0;
[ helpstring("Null handle") ]
#ifdef WIN32
const long hNull = 0;
#else
const short hNull = 0;
#endif
[ helpstring("Maximum directory length") ]
#ifdef WIN32
const int cMaxPath = 260;
#else
const int cMaxPath = 64;
#endif
[ helpstring("Maximum file length") ]
#ifdef WIN32
const int cMaxFile = 260;
#else
const int cMaxFile = 13;
#endif
// Keycodes that are missing or have confusing names in VB type library
[ helpstring("ScrollLock key.") ]
const int vbKeyScroll = 0x91;
[ helpstring("ScrollLock key.") ]
const int vbKeyScrollLock = 0x91;
[ helpstring("Page Up key.") ]
const int vbKeyPrior = 0x21;
[ helpstring("Page Down key.") ]
const int VK_NEXT = 0x22;
}